import request from '@/utils/request'

// 查询实验室申请列表
export function listLabrequest(query) {
  return request({
    url: '/lab/labrequest/list',
    method: 'get',
    params: query
  })
}

// 查询实验室申请详细
export function getLabrequest(requestId) {
  return request({
    url: '/lab/labrequest/' + requestId,
    method: 'get'
  })
}

// 新增实验室申请
export function addLabrequest(data) {
  return request({
    url: '/lab/labrequest',
    method: 'post',
    data: data
  })
}

// 修改实验室申请
export function updateLabrequest(data) {
  return request({
    url: '/lab/labrequest',
    method: 'put',
    data: data
  })
}

// 删除实验室申请
export function delLabrequest(requestId) {
  return request({
    url: '/lab/labrequest/' + requestId,
    method: 'delete'
  })
}
